package com.talent.service.base.user;

import com.talent.common.model.TalentResult;
import com.talent.model.vo.SysUserVo;
import com.talent.service.base.config.OpenFeignConfig;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;

/**
 * @ClassName：UserFegin
 * @Author: hszhou
 * @Date: 2025/2/27 18:48
 * @Description: 必须描述类做什么事情, 实现什么功能
 */
//@EnableFeignClients(defaultConfiguration = DefaultFeignConfig.class)

@FeignClient(name = "user-service", configuration = OpenFeignConfig.class)
public interface UserFeign {


    @GetMapping("/userId/{userId}")
    TalentResult<SysUserVo> userInfo(@PathVariable("userId") Long userId);
}
